package com.liming.common.pojo.vo.authinfo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author liming
 * @date 2025/3/10
 */
@Data
@Schema(description = "后台管理 - 用户信息")
public class UserVO {

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户手机号")
    private String phone;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "用户性别 0 表示未指定，1 表示男，2 表示女")
    private Integer gender;

    @Schema(description = "用户生日")
    private LocalDate birth;

    @Schema(description = "用户上次登录时间")
    private LocalDateTime lastLoginTime;

    @Schema(description = "账号是否处于激活状态，1 表示激活，0 表示未激活")
    private Integer active;

    @Schema(description = "账号是否被锁定，1 表示锁定，0 表示未锁定")
    private String locked;
}
